package server;

import java.util.NoSuchElementException;
import java.util.Scanner;


public class BashThread extends Thread {


	public void run() {
		Scanner sc=new Scanner(System.in);
		String s;
		boolean isAlive = true;
		
		while(isAlive){
			
			//TODO: ----
			try{
			s = sc.nextLine();
			if(s.equalsIgnoreCase(":quit"))
					isAlive = false;
			}catch (NoSuchElementException e){
			}
		}
		
		MessagingServer.finishServer();
		System.out.println(" --- Bash finished");
	}	
}
